<template>
  <div>
    <van-tabbar
      v-model="active"
      active-color="#ee0a24"
      inactive-color="#000"
      fixed
    >
      <van-tabbar-item icon="home-o" to="/Home">首页</van-tabbar-item>
      <van-tabbar-item icon="comment-o" to="/Sort">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/Cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/Mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 1,
    };
  },
};
</script>

<style>
van-tabbar {
  position: sticky;
  bottom: 0;
  background: #fff;
}
</style>